/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */
#include "ServerSocket.h"

namespace PQServiceCore
{
	ServerSocket::ServerSocket(int port,int backlog)
	{
		_socket=new PQNet::TCPSocket();

		_socket->open();
		_socket->setReuseAddr();

		_socket->bind(port);
		_socket->listen(backlog);

	}

	void ServerSocket::setNonBlocking()
	{
		_socket->setNonBlocking();
	}

}
